package MainTest;

import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;

/**
 * Created by xuyi on 2017/2/9.
 */
public class ArrayMore {

    public static void main(String[] args) {

        List<Integer> list = new LinkedList<>();


        list.add(1);

        list.add(12);

        list.add(5);

        list.add(5634);

        Iterator<Integer> iterator = list.iterator();

        list.get(0);
        System.out.println( "0-->" + list.get(0));

        while (iterator.hasNext()) {
            System.out.println(iterator.next());
        }

    }


}
